package com.wanmait.schedule.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 驳回表
 * </p>
 *
 * @author wanmait
 * @since 2022-03-02
 */
@Data
@Accessors(chain = true)
public class Reject {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 审核未通过理由(默认为null)
     */
    private String reason;

    /**
     * 任务id
     */
    private Integer taskId;

    @TableField(exist = false)
    private Task task;

    /**
     * 项目id（允许为null）
     */
    private Integer projectId;

    @TableField(exist = false)
    private Project project;

    /**
     * 驳回时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyy-MM-dd  HH:mm:ss")
    private LocalDateTime rejectTime;


}
